package xzy.com.dao;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import xzy.com.entity.domain.Menu;
@Repository
public interface MenuMapper extends BaseMapper<Menu>{
	//查询一级目录
	List<Map<String,Object>>findDirMenu();
	//查询一级目录对应的菜单
	List<Map<String,Object>>findSubMenu(@Param("parentId")Long parentId);
	
	//根据菜单id查询父级菜单
	List<Menu>findParMenuById(@Param("id")Long id);
}
